<?php


namespace App\Http\Controllers\Api;
use App\Http\Controllers\BaseController;
use App\Models\PackageSetting;
use Illuminate\Http\Request;

class PackageSettingController extends BaseController
{

    public $model = PackageSetting::class;

    /**
     * 列表
     * @param Request $request
     * @return mixed
     */
    public function index(Request $request) {
        $users = PackageSetting::orderBy('month', 'asc')
                ->paginate(\request('per_page', 20));
        return $this->paginate($users);
    }

}

